<?php
class smsClassAction extends Action
{
	public function gettotalAjax()
	{
		$barr = c('xinhusms')->getdata('sms','smstotal');
		return $barr;
	}
	
	//测试
	public function testsendAjax()
	{
		$mobile = $this->get('mobile');
		$barr 	= c('xinhusms')->send($mobile,'default', array(
			'modename' 	=> '测试短信',
			'modenum' 	=> 'AB-20170117-0001',
		));
		return $barr;
	}
}